// 参数信息
import request from "@/api/request";

// 查询参数信息
export const query_csinfo = (params) => {
  return request({
    url: "/essentialdata/dp/selectAll",
    method: "post",
    data: params,
  });
};

// 添加参数信息
export const create_csinfo = (params) => {
  return request({
    url: "/essentialdata/dp/insert",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json" },
  });
};

// 删除参数
export const del_csinfo = (params) => {
  return request({
    url: `/essentialdata/dp/delete/${params}`,
    method: "post",
    data: params,
  });
};

// 查询参数详情
export const query_csinfodetails = (params) => {
  return request({
    url: `/essentialdata/dp/selectDetails/${params}`,
    method: "post",
    data: params,
  });
};

// 更新参数
export const update_csinfo = (params) => {
  return request({
    url: "/essentialdata/dp/update",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json" },
  });
};

// 参数来源开窗
export const select_csSourceFw = (params) => {
  return request({
    url: `/essentialdata/dp/selectFw/${params}`,
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json" },
  });
};
